﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001057 RID: 4183
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournQueryScRsp : IMessage<RogueTournQueryScRsp>, IMessage, IEquatable<RogueTournQueryScRsp>, IDeepCloneable<RogueTournQueryScRsp>, IBufferMessage
	{
		// Token: 0x170034CA RID: 13514
		// (get) Token: 0x0600BAD9 RID: 47833 RVA: 0x001F7A2B File Offset: 0x001F5C2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournQueryScRsp> Parser
		{
			get
			{
				return RogueTournQueryScRsp._parser;
			}
		}

		// Token: 0x170034CB RID: 13515
		// (get) Token: 0x0600BADA RID: 47834 RVA: 0x001F7A32 File Offset: 0x001F5C32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournQueryScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170034CC RID: 13516
		// (get) Token: 0x0600BADB RID: 47835 RVA: 0x001F7A44 File Offset: 0x001F5C44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournQueryScRsp.Descriptor;
			}
		}

		// Token: 0x0600BADC RID: 47836 RVA: 0x001F7A4B File Offset: 0x001F5C4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournQueryScRsp()
		{
		}

		// Token: 0x0600BADD RID: 47837 RVA: 0x001F7A54 File Offset: 0x001F5C54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournQueryScRsp(RogueTournQueryScRsp other) : this()
		{
			this.rogueGetInfo_ = ((other.rogueGetInfo_ != null) ? other.rogueGetInfo_.Clone() : null);
			this.rogueTournCurInfo_ = ((other.rogueTournCurInfo_ != null) ? other.rogueTournCurInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BADE RID: 47838 RVA: 0x001F7ABC File Offset: 0x001F5CBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournQueryScRsp Clone()
		{
			return new RogueTournQueryScRsp(this);
		}

		// Token: 0x170034CD RID: 13517
		// (get) Token: 0x0600BADF RID: 47839 RVA: 0x001F7AC4 File Offset: 0x001F5CC4
		// (set) Token: 0x0600BAE0 RID: 47840 RVA: 0x001F7ACC File Offset: 0x001F5CCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournInfo RogueGetInfo
		{
			get
			{
				return this.rogueGetInfo_;
			}
			set
			{
				this.rogueGetInfo_ = value;
			}
		}

		// Token: 0x170034CE RID: 13518
		// (get) Token: 0x0600BAE1 RID: 47841 RVA: 0x001F7AD5 File Offset: 0x001F5CD5
		// (set) Token: 0x0600BAE2 RID: 47842 RVA: 0x001F7ADD File Offset: 0x001F5CDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournCurInfo RogueTournCurInfo
		{
			get
			{
				return this.rogueTournCurInfo_;
			}
			set
			{
				this.rogueTournCurInfo_ = value;
			}
		}

		// Token: 0x170034CF RID: 13519
		// (get) Token: 0x0600BAE3 RID: 47843 RVA: 0x001F7AE6 File Offset: 0x001F5CE6
		// (set) Token: 0x0600BAE4 RID: 47844 RVA: 0x001F7AEE File Offset: 0x001F5CEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600BAE5 RID: 47845 RVA: 0x001F7AF7 File Offset: 0x001F5CF7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournQueryScRsp);
		}

		// Token: 0x0600BAE6 RID: 47846 RVA: 0x001F7B08 File Offset: 0x001F5D08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournQueryScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.RogueGetInfo, other.RogueGetInfo) && object.Equals(this.RogueTournCurInfo, other.RogueTournCurInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BAE7 RID: 47847 RVA: 0x001F7B6C File Offset: 0x001F5D6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.rogueGetInfo_ != null)
			{
				num ^= this.RogueGetInfo.GetHashCode();
			}
			if (this.rogueTournCurInfo_ != null)
			{
				num ^= this.RogueTournCurInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BAE8 RID: 47848 RVA: 0x001F7BD7 File Offset: 0x001F5DD7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BAE9 RID: 47849 RVA: 0x001F7BDF File Offset: 0x001F5DDF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BAEA RID: 47850 RVA: 0x001F7BE8 File Offset: 0x001F5DE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueGetInfo_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.RogueGetInfo);
			}
			if (this.rogueTournCurInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.RogueTournCurInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BAEB RID: 47851 RVA: 0x001F7C60 File Offset: 0x001F5E60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.rogueGetInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGetInfo);
			}
			if (this.rogueTournCurInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournCurInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BAEC RID: 47852 RVA: 0x001F7CD0 File Offset: 0x001F5ED0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournQueryScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.rogueGetInfo_ != null)
			{
				if (this.rogueGetInfo_ == null)
				{
					this.RogueGetInfo = new RogueTournInfo();
				}
				this.RogueGetInfo.MergeFrom(other.RogueGetInfo);
			}
			if (other.rogueTournCurInfo_ != null)
			{
				if (this.rogueTournCurInfo_ == null)
				{
					this.RogueTournCurInfo = new RogueTournCurInfo();
				}
				this.RogueTournCurInfo.MergeFrom(other.RogueTournCurInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BAED RID: 47853 RVA: 0x001F7D64 File Offset: 0x001F5F64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BAEE RID: 47854 RVA: 0x001F7D70 File Offset: 0x001F5F70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					if (num != 82U)
					{
						if (num != 96U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.rogueTournCurInfo_ == null)
						{
							this.RogueTournCurInfo = new RogueTournCurInfo();
						}
						input.ReadMessage(this.RogueTournCurInfo);
					}
				}
				else
				{
					if (this.rogueGetInfo_ == null)
					{
						this.RogueGetInfo = new RogueTournInfo();
					}
					input.ReadMessage(this.RogueGetInfo);
				}
			}
		}

		// Token: 0x04004B49 RID: 19273
		private static readonly MessageParser<RogueTournQueryScRsp> _parser = new MessageParser<RogueTournQueryScRsp>(() => new RogueTournQueryScRsp());

		// Token: 0x04004B4A RID: 19274
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004B4B RID: 19275
		public const int RogueGetInfoFieldNumber = 8;

		// Token: 0x04004B4C RID: 19276
		private RogueTournInfo rogueGetInfo_;

		// Token: 0x04004B4D RID: 19277
		public const int RogueTournCurInfoFieldNumber = 10;

		// Token: 0x04004B4E RID: 19278
		private RogueTournCurInfo rogueTournCurInfo_;

		// Token: 0x04004B4F RID: 19279
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04004B50 RID: 19280
		private uint retcode_;
	}
}
